<?php
$this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Login");
?>
<div id="login">
<h1><?php echo UserModule::t("Sign in"); ?></h1>

<?php if(Yii::app()->user->hasFlash('loginMessage')): ?>

<div class="success">
	<?php echo Yii::app()->user->getFlash('loginMessage'); ?>
</div>

<?php endif; ?>

<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('ext.bootstrap.widgets.TbActiveForm', array(
    'id'=>'inlineForm',
    'htmlOptions'=>array('class'=>'well','style'=>'padding:25px'),
)); ?>
 
<?php echo $form->textFieldRow($model, 'username', array('class'=>'input-medium', 'prepend'=>'<i class="icon-user"></i>')); ?>
<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'input-medium','prepend'=>'<i class="icon-lock"></i>')); ?>
<?php echo $form->checkboxRow($model, 'rememberMe'); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Sign in', 'htmlOptions'=>array('style'=>'font-weight: bold;font-size: 12px;'))); ?>
 <?php echo CHtml::link(UserModule::t("Lost Password?"),Yii::app()->getModule('user')->recoveryUrl); ?>
<?php $this->endWidget(); ?>
</div>